package demo16;

/**
 * @program: qy158
 * @description:
 * @author: 闫克起2
 * @create: 2022-11-01 11:00
 **/
public class Test {
    public static void main(String[] args) {
        BankCard bankCard=new BankCard();
        Boy boy=new Boy(bankCard);
        boy.setName("汪东正");
        Girl girl=new Girl(bankCard);
        girl.setName("罗丽丽");
        boy.start();
        girl.start();
    }
}
